package com.test.springboot3.springboot3testdemo1.analyzer;

import com.test.springboot3.springboot3testdemo1.exception.JavaStackException;
import org.springframework.boot.diagnostics.AbstractFailureAnalyzer;
import org.springframework.boot.diagnostics.FailureAnalysis;

/**
 * Created with IntelliJ IDEA.
 *
 * @author： liuziyang
 * @date： 2024/7/25-22:02
 * @description：
 * @modifiedBy：
 * @version: 1.0
 */
public class JavastackFailureAnalyzer extends AbstractFailureAnalyzer<JavaStackException> {
  @Override
  protected FailureAnalysis analyze(Throwable rootFailure, JavaStackException cause) {
    return new FailureAnalysis("Java技术栈发生异常了...", "尽快检查程序", cause);
  }
}
